package com.plan
/**
 * The QuantitiesStat entity.
 *
 * @author  michael.geng  mokesoft
 *
 *
 */
class QuantitiesStat {
    static mapping = {
         table 'pm_quantities_stat'
         // version is set to false, because this isn't available by default for legacy databases
         version true
         id generator:'identity', column:'ID'
    }
    Long id
    String creater
    Date dateCreated
    Date lastUpdated
    String quantitiesName
    String remark
    String spec
    Integer status
    String str1
    String str2
    String subProject
    String subject
    java.math.BigDecimal sum
    String system
    String unit

    static constraints = {
        system(size: 1..50, blank: false)
        subProject(size: 0..50)
        subject(size: 0..50)
        quantitiesName(size: 0..100)
        spec(size: 0..100)
        unit(size: 0..50)
        sum(nullable: true)
        creater(size: 0..30)
        status(nullable: true, max: 2147483647)
        remark()
        dateCreated()
        lastUpdated()
        str1(nullable: true)
        str2(nullable: true)
    }
    String toString() {
        return "${id}" 
    }
}
